<include file="Public:header" />
<div class="main">
    <div class="box_tit">
        <h2>订单列表</h2>
    </div>
    <div class="operate">
        
        <div class="fLeft"><input type="button" onclick="foreverdel()" class="submit btn5" value="删除选中"></div>
        <div class="fLeft">
            <form method="post" action="{:U('Order/index')}">
                <input type="text" name="ddid" title="订单编号" class="mL20 ipt4">
                <select name="zt">
                        <option value="-2" <eq name="zt" value="-2">selected="selected"</eq>>全部</option>
                        <option value="2" <eq name="zt" value="2">selected="selected"</eq>>未发货</option>
                        <option value="3" <eq name="zt" value="3">selected="selected"</eq>>已发货</option>
                        <option value="1" <eq name="zt" value="1">selected="selected"</eq>>交易完成</option>
                        <option value="0" <eq name="zt" value="0">selected="selected"</eq>>退货</option>
                </select>
           
                <input type="submit" class="submit btn5" value="查  询">
            </form>
            
        </div>
    </div>
    <div class="list">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
            <tr class="nbg">
                <th><input type="checkbox" id="check"></th>
                <th>订单编号</th>
                <th>订购时间</th>
                <th>会员名</th>
                <th>订单金额</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            <volist name="list" id="vo">
            <tr>
                <td><input type="checkbox" name="key" value="{$vo.id}"></td>
                <td><a href="{:U('Order/edit',array('id'=>$vo['id']))}">{$vo.orderid}</a></td>
                <td>{$vo.create_time|toDate="Y-m-d H:i:s"}</td>
                <td>{$vo.memberid|getMemberName}</td>
                <td>{$vo.totalprice}</td>
                <td>{$vo.status|getOrderStatus}</td>
                <td>
                    <if condition="$vo.status eq 2">
                        <a href="{:U('Order/over',array('id'=>$vo['id']))}">发货</a>
                    <elseif condition="$vo.status eq 3" />
                         <a href="{:U('Order/checkPass',array('id'=>$vo['id']))}">已收到货</a>&nbsp;|&nbsp;<a href="{:U('Order/forbid',array('id'=>$vo['id']))}">退货</a>
                    <else /> 
                        无
                    </if>
                </td>
            </tr>
            </volist>
            </tbody>
        </table>
        <div class="th" style="clear: both;">{$page}</div>
    </div>
</div>
<include file="Public:footer" />